using System;
using System.Collections.Generic;
using System.Text;
using ScannerLib.Vector;
using ScannerLib.PlaneCalibration;
using System.Windows.Forms;

namespace TestCalib
{
    class Program
    {
        static void Main(string[] args)
        {
            BasicVector[] points = new BasicVector[] { new BasicVector(-30, - 140, 1), new BasicVector(111, -139, 1), new BasicVector(87, -57, 1), new BasicVector(-26, -58, 1)};

           // Array.Reverse(points);

            DeskCalibrationInfo dci = PlaneCalibrator.Calibrate(points);

            Console.WriteLine("Focus: {0} Desk: {1} Distance: {2}", dci.CameraMatrix, dci.DesktopPlane, dci.CameraHeight);
            //Console.ReadLine();

            Application.Run(new TestFrameGrabber());
        }
    }
}
